package com.lin.chapter33.chapter1.facade;

public class SalaryProvider {
	private BasicSalary basicSalary = new BasicSalary();

	private Bonus bonus = new Bonus();
	private Performance performance = new Performance();
	private Tax tax = new Tax();

	public int totalSalary(){
		return basicSalary.getBasicSalary() + bonus.getBonus() + performance.getPerformanceValue() - tax.getTax();
	}
}
